package com.example.vertification.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "UserAddresses")
@Data // 这个注解会自动生成getter、setter、equals、hashCode和toString方法
public class UserAddress {

    @Id
    @Column(nullable = false)
    private long uid;

    @Column(columnDefinition = "TEXT",nullable = false)
    private String addresses;


    public UserAddress(Long uid, String addresses) {
        this.uid=uid;
        this.addresses=addresses;
    }

    public UserAddress() {

    }
}